<extend name="Public:base" />
<block name="content">

<Widget:show col="12" title="更新内容">
<form action="{$updateUrl}">
    <input type="hidden" name="id" value="{$vo.id}">
    <input type="hidden" name="apid" value="{$apid}">
<div class="row">
    <Ui:field tb="Content" col="6" name="title" value="{$vo.title}" ></Ui:field>
    <Ui:field tb="Content" label="名称" col="6" name="name" value="{$vo.name}" ></Ui:field>
    <Ui:field tb="Content" col="11" name="url" value="{$vo.url}" ></Ui:field>
    <Ui:field col="1" name="idx" value="{$vo.idx}" ></Ui:field>
    <Ui:field col="6" name="picurl" value="{$vo.picurl}" ></Ui:field>
    <Ui:field col="6" name="icon" value="{$vo.icon}" ></Ui:field>
    <Ui:field col="12" name="intro" value="{$vo.intro}" ></Ui:field>
    <Ui:field hideipt="true" col="12" name="content"  >
    <script style="height:320px;width:100%;" id="editor" name="content" type="text/plain" >
    {$vo.content}
    </script>
    </Ui:field>
</div>
<button ajax-submit type="submit" class="btn btn-blue">保存</button>
</form>    
</Widget:show>

<load href="assets/ueditor/ueditor.config.min.js" />
<load href="assets/ueditor/ueditor.all.min.js" />
<script type="text/javascript">
var ue = UE.getEditor('editor'); 
$(function(){
    
})  
</script>
</block>
